home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / python-support / gnome-orca / orca / chnames.py < prev    next >
Encoding:
Python Source  |  2009-04-13  |  21.1 KB  |  754 lines

  1. # -*- coding: utf-8 -*-
  2. # Orca
  3. #
  4. # Copyright 2004-2008 Sun Microsystems Inc.
  5. #
  6. # This library is free software; you can redistribute it and/or
  7. # modify it under the terms of the GNU Library General Public
  8. # License as published by the Free Software Foundation; either
  9. # version 2 of the License, or (at your option) any later version.
  10. #
  11. # This library is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14. # Library General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU Library General Public
  17. # License along with this library; if not, write to the
  18. # Free Software Foundation, Inc., Franklin Street, Fifth Floor,
  19. # Boston MA  02110-1301 USA.
  20.  
  21. """Provides getCharacterName that maps punctuation marks and other
  22. individual characters into localized words."""
  23.  
  24. __id__        = "$Id: chnames.py 4411 2009-01-08 15:09:09Z wwalker $"
  25. __version__   = "$Revision: 4411 $"
  26. __date__      = "$Date: 2009-01-08 10:09:09 -0500 (Thu, 08 Jan 2009) $"
  27. __copyright__ = "Copyright (c) 2005-2008 Sun Microsystems Inc."
  28. __license__   = "LGPL"
  29.  
  30. from orca_i18n import _ # for gettext support
  31.  
  32. # chnames is a dictionary where the keys represent a unicode character
  33. # and the values represent the common term used for the character.
  34. #
  35. chnames = {}
  36.  
  37. # Translators: this is the spoken word for the space character
  38. #
  39. chnames[" "] = _("space")
  40.  
  41. # Translators: this is the spoken word for the newline character
  42. #
  43. chnames["\n"] = _("newline")
  44.  
  45. # Translators: this is the spoken word for the tab character
  46. #
  47. chnames["\t"] = _("tab")
  48.  
  49. # Translators: this is the spoken word for the character '!' (U+0021)
  50. #
  51. chnames["!"] = _("exclaim")
  52.  
  53. # Translators: this is the spoken word for the character '"' (U+0022)
  54. #
  55. chnames["\""] = _("quote")
  56.  
  57. # Translators: this is the spoken word for the character '#' (U+0023)
  58. #
  59. chnames["#"] = _("number")
  60.  
  61. # Translators: this is the spoken word for the character '$' (U+0024)
  62. #
  63. chnames["$"] = _("dollar")
  64.  
  65. # Translators: this is the spoken word for the character '%' (U+0025)
  66. #
  67. chnames["%"] = _("percent")
  68.  
  69. # Translators: this is the spoken word for the character '&' (U+0026)
  70. #
  71. chnames["&"] = _("and")
  72.  
  73. # Translators: this is the spoken word for the character ''' (U+0027)
  74. #
  75. chnames["'"] = _("apostrophe")
  76.  
  77. # Translators: this is the spoken word for the character '(' (U+0028)
  78. #
  79. chnames["("] = _("left paren")
  80.  
  81. # Translators: this is the spoken word for the character ')' (U+0029)
  82. #
  83. chnames[")"] = _("right paren")
  84.  
  85. # Translators: this is the spoken word for the character '*' (U+002a)
  86. #
  87. chnames["*"] = _("star")
  88.  
  89. # Translators: this is the spoken word for the character '+' (U+002b)
  90. #
  91. chnames["+"] = _("plus")
  92.  
  93. # Translators: this is the spoken word for the character ',' (U+002c)
  94. #
  95. chnames[","] = _("comma")
  96.  
  97. # Translators: this is the spoken word for the character '-' (U+002d)
  98. #
  99. chnames["-"] = _("dash")
  100.  
  101. # Translators: this is the spoken word for the character '.' (U+002e)
  102. #
  103. chnames["."] = _("dot")
  104.  
  105. # Translators: this is the spoken word for the character '/' (U+002f)
  106. #
  107. chnames["/"] = _("slash")
  108.  
  109. # Translators: this is the spoken word for the character ':' (U+003a)
  110. #
  111. chnames[":"] = _("colon")
  112.  
  113. # Translators: this is the spoken word for the character ';' (U+003b)
  114. #
  115. chnames[";"] = _("semicolon")
  116.  
  117. # Translators: this is the spoken word for the character '<¬†' (U+003c)
  118. #
  119. chnames["<"] = _("less")
  120.  
  121. # Translators: this is the spoken word for the character '=' (U+003d)
  122. #
  123. chnames["="] = _("equals")
  124.  
  125. # Translators: this is the spoken word for the character '>¬†' (U+003e)
  126. #
  127. chnames[">"] = _("greater")
  128.  
  129. # Translators: this is the spoken word for the character '?' (U+003f)
  130. #
  131. chnames["?"] = _("question")
  132.  
  133. # Translators: this is the spoken word for the character '@' (U+0040)
  134. #
  135. chnames["@"] = _("at")
  136.  
  137. # Translators: this is the spoken word for the character '[' (U+005b)
  138. #
  139. chnames["["] = _("left bracket")
  140.  
  141. # Translators: this is the spoken word for the character '\' (U+005c)
  142. #
  143. chnames["\\"] = _("backslash")
  144.  
  145. # Translators: this is the spoken word for the character ']' (U+005d)
  146. #
  147. chnames["]"] = _("right bracket")
  148.  
  149. # Translators: this is the spoken word for the character '^' (U+005e)
  150. #
  151. chnames["^"] = _("caret")
  152.  
  153. # Translators: this is the spoken word for the character '_' (U+005f)
  154. #
  155. chnames["_"] = _("underline")
  156.  
  157. # Translators: this is the spoken word for the character '`' (U+0060)
  158. #
  159. chnames["`"] = _("grave")
  160.  
  161. # Translators: this is the spoken word for the character '{' (U+007b)
  162. #
  163. chnames["{"] = _("left brace")
  164.  
  165. # Translators: this is the spoken word for the character '|' (U+007c)
  166. #
  167. chnames["|"] = _("vertical bar")
  168.  
  169. # Translators: this is the spoken word for the character '}' (U+007d)
  170. #
  171. chnames["}"] = _("right brace")
  172.  
  173. # Translators: this is the spoken word for the character '~' (U+007e)
  174. #
  175. chnames["~"] = _("tilde")
  176.  
  177. # Translators: this is the spoken word for the character '¬°' (U+00a1)
  178. #
  179. chnames[u'\u00a1'] = _("inverted exclamation point")
  180.  
  181. # Translators: this is the spoken word for the character '¬¢' (U+00a2)
  182. #
  183. chnames[u'\u00a2'] = _("cents")
  184.  
  185. # Translators: this is the spoken word for the character '¬£' (U+00a3)
  186. #
  187. chnames[u'\u00a3'] = _("pounds")
  188.  
  189. # Translators: this is the spoken word for the character '¬§' (U+00a4)
  190. #
  191. chnames[u'\u00a4'] = _("currency sign")
  192.  
  193. # Translators: this is the spoken word for the character '¬•' (U+00a5)
  194. #
  195. chnames[u'\u00a5'] = _("yen")
  196.  
  197. # Translators: this is the spoken word for the character '¬¶' (U+00a6)
  198. #
  199. chnames[u'\u00a6'] = _("broken bar")
  200.  
  201. # Translators: this is the spoken word for the character '¬ß' (U+00a7)
  202. #
  203. chnames[u'\u00a7'] = _("section")
  204.  
  205. # Translators: this is the spoken word for the character '¬®' (U+00a8)
  206. #
  207. chnames[u'\u00a8'] = _("umlaut")
  208.  
  209. # Translators: this is the spoken word for the character '¬©' (U+00a9)
  210. #
  211. chnames[u'\u00a9'] = _("copyright")
  212.  
  213. # Translators: this is the spoken word for the character '¬™' (U+00aa)
  214. #
  215. chnames[u'\u00aa'] = _("superscript a")
  216.  
  217. # Translators: this is the spoken word for the character '¬´' (U+00ab)
  218. #
  219. chnames[u'\u00ab'] = _("left double angle bracket")
  220.  
  221. # Translators: this is the spoken word for the character '¬¨' (U+00ac)
  222. #
  223. chnames[u'\u00ac'] = _("logical not")
  224.  
  225. # Translators: this is the spoken word for the character '¬≠' (U+00ad)
  226. #
  227. chnames[u'\u00ad'] = _("soft hyphen")
  228.  
  229. # Translators: this is the spoken word for the character '¬Æ' (U+00ae)
  230. #
  231. chnames[u'\u00ae'] = _("registered")
  232.  
  233. # Translators: this is the spoken word for the character '¬Ø' (U+00af)
  234. #
  235. chnames[u'\u00af'] = _("macron")
  236.  
  237. # Translators: this is the spoken word for the character '¬∞' (U+00b0)
  238. #
  239. chnames[u'\u00b0'] = _("degrees")
  240.  
  241. # Translators: this is the spoken word for the character '¬±' (U+00b1)
  242. #
  243. chnames[u'\u00b1'] = _("plus or minus")
  244.  
  245. # Translators: this is the spoken word for the character '¬≤' (U+00b2)
  246. #
  247. chnames[u'\u00b2'] = _("superscript 2")
  248.  
  249. # Translators: this is the spoken word for the character '¬≥' (U+00b3)
  250. #
  251. chnames[u'\u00b3'] = _("superscript 3")
  252.  
  253. # Translators: this is the spoken word for the character '¬¥' (U+00b4)
  254. #
  255. chnames[u'\u00b4'] = _("acute accent")
  256.  
  257. # Translators: this is the spoken word for the character '¬µ' (U+00b5)
  258. #
  259. chnames[u'\u00b5'] = _("mu")
  260.  
  261. # Translators: this is the spoken word for the character '¬∂' (U+00b6)
  262. #
  263. chnames[u'\u00b6'] = _("paragraph marker")
  264.  
  265. # Translators: this is the spoken word for the character '¬∑' (U+00b7)
  266. #
  267. chnames[u'\u00b7'] = _("middle dot")
  268.  
  269. # Translators: this is the spoken word for the character '¬∏' (U+00b8)
  270. #
  271. chnames[u'\u00b8'] = _("cedilla")
  272.  
  273. # Translators: this is the spoken word for the character '¬π' (U+00b9)
  274. #
  275. chnames[u'\u00b9'] = _("superscript 1")
  276.  
  277. # Translators: this is the spoken word for the character '¬∫' (U+00ba)
  278. #
  279. chnames[u'\u00ba'] = _("ordinal")
  280.  
  281. # Translators: this is the spoken word for the character '¬ª' (U+00bb)
  282. #
  283. chnames[u'\u00bb'] = _("right double angle bracket")
  284.  
  285. # Translators: this is the spoken word for the character '¬º' (U+00bc)
  286. #
  287. chnames[u'\u00bc'] = _("one fourth")
  288.  
  289. # Translators: this is the spoken word for the character '¬Ω' (U+00bd)
  290. #
  291. chnames[u'\u00bd'] = _("one half")
  292.  
  293. # Translators: this is the spoken word for the character '¬æ' (U+00be)
  294. #
  295. chnames[u'\u00be'] = _("three fourths")
  296.  
  297. # Translators: this is the spoken word for the character '¬ø' (U+00bf)
  298. #
  299. chnames[u'\u00bf'] = _("inverted question mark")
  300.  
  301. # Translators: this is the spoken word for the character '√°' (U+00e1)
  302. #
  303. chnames[u'\u00e1'] = _("a acute")
  304.  
  305. # Translators: this is the spoken word for the character '√Ä' (U+00c0)
  306. #
  307. chnames[u'\u00c0'] = _("A GRAVE")
  308.  
  309. # Translators: this is the spoken word for the character '√Å' (U+00c1)
  310. #
  311. chnames[u'\u00c1'] = _("A ACUTE")
  312.  
  313. # Translators: this is the spoken word for the character '√Ç' (U+00c2)
  314. #
  315. chnames[u'\u00c2'] = _("A CIRCUMFLEX")
  316.  
  317. # Translators: this is the spoken word for the character '√É' (U+00c3)
  318. #
  319. chnames[u'\u00c3'] = _("A TILDE")
  320.  
  321. # Translators: this is the spoken word for the character '√Ñ' (U+00c4)
  322. #
  323. chnames[u'\u00c4'] = _("A UMLAUT")
  324.  
  325. # Translators: this is the spoken word for the character '√Ö' (U+00c5)
  326. #
  327. chnames[u'\u00c5'] = _("A RING")
  328.  
  329. # Translators: this is the spoken word for the character '√Ü' (U+00c6)
  330. #
  331. chnames[u'\u00c6'] = _("A E")
  332.  
  333. # Translators: this is the spoken word for the character '√á' (U+00c7)
  334. #
  335. chnames[u'\u00c7'] = _("C CEDILLA")
  336.  
  337. # Translators: this is the spoken word for the character '√à' (U+00c8)
  338. #
  339. chnames[u'\u00c8'] = _("E GRAVE")
  340.  
  341. # Translators: this is the spoken word for the character '√â' (U+00c9)
  342. #
  343. chnames[u'\u00c9'] = _("E ACUTE")
  344.  
  345. # Translators: this is the spoken word for the character '√ä' (U+00ca)
  346. #
  347. chnames[u'\u00ca'] = _("E CIRCUMFLEX")
  348.  
  349. # Translators: this is the spoken word for the character '√ã' (U+00cb)
  350. #
  351. chnames[u'\u00cb'] = _("E UMLAUT")
  352.  
  353. # Translators: this is the spoken word for the character '√å' (U+00cc)
  354. #
  355. chnames[u'\u00cc'] = _("I GRAVE")
  356.  
  357. # Translators: this is the spoken word for the character '√ç' (U+00cd)
  358. #
  359. chnames[u'\u00cd'] = _("I ACUTE")
  360.  
  361. # Translators: this is the spoken word for the character '√é' (U+00ce)
  362. #
  363. chnames[u'\u00ce'] = _("I CIRCUMFLEX")
  364.  
  365. # Translators: this is the spoken word for the character '√è' (U+00cf)
  366. #
  367. chnames[u'\u00cf'] = _("I UMLAUT")
  368.  
  369. # Translators: this is the spoken word for the character '√ê' (U+00d0)
  370. #
  371. chnames[u'\u00d0'] = _("ETH")
  372.  
  373. # Translators: this is the spoken word for the character '√ë' (U+00d1)
  374. #
  375. chnames[u'\u00d1'] = _("N TILDE")
  376.  
  377. # Translators: this is the spoken word for the character '√í' (U+00d2)
  378. #
  379. chnames[u'\u00d2'] = _("O GRAVE")
  380.  
  381. # Translators: this is the spoken word for the character '√ì' (U+00d3)
  382. #
  383. chnames[u'\u00d3'] = _("O ACUTE")
  384.  
  385. # Translators: this is the spoken word for the character '√î' (U+00d4)
  386. #
  387. chnames[u'\u00d4'] = _("O CIRCUMFLEX")
  388.  
  389. # Translators: this is the spoken word for the character '√ï' (U+00d5)
  390. #
  391. chnames[u'\u00d5'] = _("O TILDE")
  392.  
  393. # Translators: this is the spoken word for the character '√ñ' (U+00d6)
  394. #
  395. chnames[u'\u00d6'] = _("O UMLAUT")
  396.  
  397. # Translators: this is the spoken word for the character '√ó' (U+00d7)
  398. #
  399. chnames[u'\u00d7'] = _("times")
  400.  
  401. # Translators: this is the spoken word for the character '√ò' (U+00d8)
  402. #
  403. chnames[u'\u00d8'] = _("O STROKE")
  404.  
  405. # Translators: this is the spoken word for the character '√ô' (U+00d9)
  406. #
  407. chnames[u'\u00d9'] = _("U GRAVE")
  408.  
  409. # Translators: this is the spoken word for the character '√ö' (U+00da)
  410. #
  411. chnames[u'\u00da'] = _("U ACUTE")
  412.  
  413. # Translators: this is the spoken word for the character '√õ' (U+00db)
  414. #
  415. chnames[u'\u00db'] = _("U CIRCUMFLEX")
  416.  
  417. # Translators: this is the spoken word for the character '√ú' (U+00dc)
  418. #
  419. chnames[u'\u00dc'] = _("U UMLAUT")
  420.  
  421. # Translators: this is the spoken word for the character '√ù' (U+00dd)
  422. #
  423. chnames[u'\u00dd'] = _("Y ACUTE")
  424.  
  425. # Translators: this is the spoken word for the character '√û' (U+00de)
  426. #
  427. chnames[u'\u00de'] = _("THORN")
  428.  
  429. # Translators: this is the spoken word for the character '√ü' (U+00df)
  430. #
  431. chnames[u'\u00df'] = _("s sharp")
  432.  
  433. # Translators: this is the spoken word for the character '√†' (U+00e0)
  434. #
  435. chnames[u'\u00e0'] = _("a grave")
  436.  
  437. # Translators: this is the spoken word for the character '√¢' (U+00e2)
  438. #
  439. chnames[u'\u00e2'] = _("a circumflex")
  440.  
  441. # Translators: this is the spoken word for the character '√£' (U+00e3)
  442. #
  443. chnames[u'\u00e3'] = _("a tilde")
  444.  
  445. # Translators: this is the spoken word for the character '√§' (U+00e4)
  446. #
  447. chnames[u'\u00e4'] = _("a umlaut")
  448.  
  449. # Translators: this is the spoken word for the character '√•' (U+00e5)
  450. #
  451. chnames[u'\u00e5'] = _("a ring")
  452.  
  453. # Translators: this is the spoken word for the character '√¶' (U+00e6)
  454. #
  455. chnames[u'\u00e6'] = _("a e")
  456.  
  457. # Translators: this is the spoken word for the character '√ß' (U+00e7)
  458. #
  459. chnames[u'\u00e7'] = _("c cedilla")
  460.  
  461. # Translators: this is the spoken word for the character '√®' (U+00e8)
  462. #
  463. chnames[u'\u00e8'] = _("e grave")
  464.  
  465. # Translators: this is the spoken word for the character '√©' (U+00e9)
  466. #
  467. chnames[u'\u00e9'] = _("e acute")
  468.  
  469. # Translators: this is the spoken word for the character '√™' (U+00ea)
  470. #
  471. chnames[u'\u00ea'] = _("e circumflex")
  472.  
  473. # Translators: this is the spoken word for the character '√´' (U+00eb)
  474. #
  475. chnames[u'\u00eb'] = _("e umlaut")
  476.  
  477. # Translators: this is the spoken word for the character '√¨' (U+00ec)
  478. #
  479. chnames[u'\u00ec'] = _("i grave")
  480.  
  481. # Translators: this is the spoken word for the character '√≠' (U+00ed)
  482. #
  483. chnames[u'\u00ed'] = _("i acute")
  484.  
  485. # Translators: this is the spoken word for the character '√Æ' (U+00ee)
  486. #
  487. chnames[u'\u00ee'] = _("i circumflex")
  488.  
  489. # Translators: this is the spoken word for the character '√Ø' (U+00ef)
  490. #
  491. chnames[u'\u00ef'] = _("i umlaut")
  492.  
  493. # Translators: this is the spoken word for the character '√∞' (U+00f0)
  494. #
  495. chnames[u'\u00f0'] = _("eth")
  496.  
  497. # Translators: this is the spoken word for the character '√±' (U+00f1)
  498. #
  499. chnames[u'\u00f1'] = _("n tilde")
  500.  
  501. # Translators: this is the spoken word for the character '√≤' (U+00f2)
  502. #
  503. chnames[u'\u00f2'] = _("o grave")
  504.  
  505. # Translators: this is the spoken word for the character '√≥' (U+00f3)
  506. #
  507. chnames[u'\u00f3'] = _("o acute")
  508.  
  509. # Translators: this is the spoken word for the character '√¥' (U+00f4)
  510. #
  511. chnames[u'\u00f4'] = _("o circumflex")
  512.  
  513. # Translators: this is the spoken word for the character '√µ' (U+00f5)
  514. #
  515. chnames[u'\u00f5'] = _("o tilde")
  516.  
  517. # Translators: this is the spoken word for the character '√∂' (U+00f6)
  518. #
  519. chnames[u'\u00f6'] = _("o umlaut")
  520.  
  521. # Translators: this is the spoken word for the character '√∑' (U+00f7)
  522. #
  523. chnames[u'\u00f7'] = _("divided by")
  524.  
  525. # Translators: this is the spoken word for the character '√∏' (U+00f8)
  526. #
  527. chnames[u'\u00f8'] = _("o stroke")
  528.  
  529. # Translators: this is the spoken word for the character '√æ' (U+00fe)
  530. #
  531. chnames[u'\u00fe'] = _("thorn")
  532.  
  533. # Translators: this is the spoken word for the character '√∫' (U+00fa)
  534. #
  535. chnames[u'\u00fa'] = _("u acute")
  536.  
  537. # Translators: this is the spoken word for the character '√π' (U+00f9)
  538. #
  539. chnames[u'\u00f9'] = _("u grave")
  540.  
  541. # Translators: this is the spoken word for the character '√ª' (U+00fb)
  542. #
  543. chnames[u'\u00fb'] = _("u circumflex")
  544.  
  545. # Translators: this is the spoken word for the character '√º' (U+00fc)
  546. #
  547. chnames[u'\u00fc'] = _("u umlaut")
  548.  
  549. # Translators: this is the spoken word for the character '√Ω' (U+00fd)
  550. #
  551. chnames[u'\u00fd'] = _("y acute")
  552.  
  553. # Translators: this is the spoken word for the character '√ø' (U+00ff)
  554. #
  555. chnames[u'\u00ff'] = _("y umlaut")
  556.  
  557. # Translators: this is the spoken word for the character '≈∏' (U+0178)
  558. #
  559. chnames[u'\u0178'] = _("Y UMLAUT")
  560.  
  561. # Translators: this is the spoken word for the character 'Δí' (U+0192)
  562. #
  563. chnames[u'\u0192'] = _("florin")
  564.  
  565. # Translators: this is the spoken word for the character '‚Äì' (U+2013)
  566. #
  567. chnames[u'\u2013'] = _("en dash")
  568.  
  569. # Translators: this is the spoken word for the left single quote: ‚Äò
  570. # (U+2018)
  571. #
  572. chnames[u'\u2018'] = _("left single quote")
  573.  
  574. # Translators: this is the spoken word for the right single quote: ‚Äô
  575. # (U+2019)
  576. #
  577. chnames[u'\u2019'] = _("right single quote")
  578.  
  579. # Translators: this is the spoken word for the character '‚Äö' (U+201a)
  580. #
  581. chnames[u'\u201a'] = _("single low quote")
  582.  
  583. # Translators: this is the spoken word for the character '‚Äú' (U+201c)
  584. #
  585. chnames[u'\u201c'] = _("left double quote")
  586.  
  587. # Translators: this is the spoken word for the character '‚Äù' (U+201d)
  588. #
  589. chnames[u'\u201d'] = _("right double quote")
  590.  
  591. # Translators: this is the spoken word for the character '‚Äû' (U+201e)
  592. #
  593. chnames[u'\u201e'] = _("double low quote")
  594.  
  595. # Translators: this is the spoken word for the character '‚Ć' (U+2020)
  596. #
  597. chnames[u'\u2020'] = _("dagger")
  598.  
  599. # Translators: this is the spoken word for the character '‚İ' (U+2021)
  600. #
  601. chnames[u'\u2021'] = _("double dagger")
  602.  
  603. # Translators: this is the spoken word for the character '‚Ä¢' (U+2022)
  604. #
  605. chnames[u'\u2022'] = _("bullet")
  606.  
  607. # Translators: this is the spoken word for the character '‚Ä£' (U+2023)
  608. #
  609. chnames[u'\u2023'] = _("triangular bullet")
  610.  
  611. # Translators: this is the spoken word for the character '‚Ä∞' (U+2030)
  612. #
  613. chnames[u'\u2030'] = _("per mille")
  614.  
  615. # Translators: this is the spoken word for the character '‚Ä≤' (U+2032)
  616. #
  617. chnames[u'\u2032'] = _("prime")
  618.  
  619. # Translators: this is the spoken word for the character '‚Ä≥' (U+2033)
  620. #
  621. chnames[u'\u2033'] = _("double prime")
  622.  
  623. # Translators: this is the spoken word for the character '‚ÅÉ' (U+2043)
  624. #
  625. chnames[u'\u2043'] = _("hyphen bullet")
  626.  
  627. # Translators: this is the spoken word for the character '‚Ǩ' (U+20ac)
  628. #
  629. chnames[u'\u20ac'] = _("euro")
  630.  
  631. # Translators: this is the spoken word for the character '‚Ñ¢' (U+2122)
  632. #
  633. chnames[u'\u2122'] = _("trademark")
  634.  
  635. # Translators: this is the spoken word for the character '‚âà' (U+2248)
  636. #
  637. chnames[u'\u2248'] = _("almost equal to")
  638.  
  639. # Translators: this is the spoken word for the character '‚â†' (U+2260)
  640. #
  641. chnames[u'\u2260'] = _("not equal to")
  642.  
  643. # Translators: this is the spoken word for the character '‚â§' (U+2264)
  644. #
  645. chnames[u'\u2264'] = _("less than or equal to")
  646.  
  647. # Translators: this is the spoken word for the character '‚â•' (U+2265)
  648. #
  649. chnames[u'\u2265'] = _("greater than or equal to")
  650.  
  651. # Translators: this is the spoken word for the character '‚àö' (U+221a)
  652. #
  653. chnames[u'\u221a'] = _("square root")
  654.  
  655. # Translators: this is the spoken word for the character '‚àõ' (U+221b)
  656. #
  657. chnames[u'\u221b'] = _("cube root")
  658.  
  659. # Translators: this is the spoken word for the character '‚àû' (U+221e)
  660. #
  661. chnames[u'\u221e'] = _("infinity")
  662.  
  663. # Translators: this is the spoken word for the character '‚ñ†' (U+25a0)
  664. # It can be used as a bullet in a list.
  665. #
  666. chnames[u'\u25a0'] = _("black square")
  667.  
  668. # Translators: this is the spoken word for the character '‚ñ°' (U+25a1)
  669. # It can be used as a bullet in a list.
  670. #
  671. chnames[u'\u25a1'] = _("white square")
  672.  
  673. # Translators: this is the spoken word for the character '‚óÜ' (U+25c6)
  674. # It can be used as a bullet in a list.
  675. #
  676. chnames[u'\u25c6'] = _("black diamond")
  677.  
  678. # Translators: this is the spoken word for the character '‚óã' (U+25cb)
  679. # It can be used as a bullet in a list.
  680. #
  681. chnames[u'\u25cb'] = _("white circle")
  682.  
  683. # Translators: this is the spoken word for the character '‚óè' (U+25cf)
  684. # It can be used as a bullet in a list.
  685. #
  686. chnames[u'\u25cf'] = _("black circle")
  687.  
  688. # Translators: this is the spoken word for the character '‚ó¶' (U+25e6)
  689. #
  690. chnames[u'\u25e6'] = _("white bullet")
  691.  
  692. # Translators: this is the spoken word for the character '‚úì' (U+2713)
  693. # It can be used as a bullet in a list.
  694. #
  695. chnames[u'\u2713'] = _("check mark")
  696.  
  697. # Translators: this is the spoken word for the character '‚úî' (U+2714)
  698. # It can be used as a bullet in a list.
  699. #
  700. chnames[u'\u2714'] = _("heavy check mark")
  701.  
  702. # Translators: this is the spoken word for the character 'x' (U+2717)
  703. # This symbol is included here because it can be used as a bullet in 
  704. # an OOo list.  The goal is to inform the user of the appearance of 
  705. # the bullet, while making it clear that it is a bullet and not simply 
  706. # the typed letter 'x'.  "Ballot x" might confuse the user.  Hence the 
  707. # use of "x-shaped bullet".
  708. #
  709. chnames[u'\u2717'] = _("x-shaped bullet")
  710.  
  711. # Translators: this is the spoken word for the character '‚ûî' (U+2794)
  712. # This symbol is included here because it can be used as a bullet in 
  713. # an OOo list. The goal is to inform the user of the appearance of 
  714. # the bullet without too much verbiage, hence simply "right-pointing arrow".
  715. #
  716. chnames[u'\u2974'] = _("right-pointing arrow")
  717.  
  718. # Translators: this is the spoken word for the character '‚û¢' (U+27a2)
  719. # This symbol is included here because it can be used as a bullet in an 
  720. # OOo list. The goal is to inform the user of the appearance of the bullet 
  721. # without too much verbiage, hence simply "right-pointing arrowhead".
  722. #
  723. chnames[u'\u27a2'] = _("right-pointing arrowhead")
  724.  
  725. # Translators:  StarOffice/OOo includes private-use unicode character U+E00A 
  726. # as a bullet which looks like the black square: ‚ñ† (U+25A0).  Therefore, 
  727. # please use the same translation for this character.
  728. #
  729. chnames[u'\ue00a'] = _("black square")
  730.  
  731. # Translators:  StarOffice/OOo includes private-use unicode character U+E00C 
  732. # as a bullet which looks like the black diamond: ‚óÜ (U+25C6).  Therefore, 
  733. # please use the same translation for this character.
  734. #
  735. chnames[u'\ue00c'] = _("black diamond")
  736.  
  737. def getCharacterName(character):
  738.     """Given a character, return its name as people might refer to it
  739.     in ordinary conversation.
  740.  
  741.     Arguments:
  742.     - character: the character to get the name for
  743.  
  744.     Returns a string representing the name for the character
  745.     """
  746.  
  747.     if not isinstance(character, unicode):
  748.         character = character.decode("UTF-8")
  749.  
  750.     try:
  751.         return chnames[character]
  752.     except:
  753.         return character
  754.